package cn.tedu.charging.order.dao.repository;


import cn.tedu.charging.order.pojo.po.ChargingBillFailPO;
import cn.tedu.charging.order.pojo.po.ChargingBillSuccessPO;

import java.util.List;

public interface OrderRepository {

    Integer saveSuccessOrder(ChargingBillSuccessPO successPO);

    List<ChargingBillSuccessPO> orderList(Integer userId);

    Integer saveFailOrder(ChargingBillFailPO chargingBillFailPO);

    Integer updateOrderStatusFromProgress2ExceptionEnd(String orderNo);

    ChargingBillSuccessPO getSuccess(String orderNo);

    ChargingBillFailPO getFail(String orderNo);

    void updateSuccessOrder(String orderNo, Integer gunId);

    void updateOrderStatusFromProgress2NormalEnd(String orderNo);
}
